//
//  CommissionCountView.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/5.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "CommissionCountView.h"


@interface CommissionCountView ()
@property (weak, nonatomic) IBOutlet UILabel *commissionMoneryCountLab;

@property (weak, nonatomic) IBOutlet UILabel *salesCountLab;

@property (weak, nonatomic) IBOutlet UILabel *salesHoursCountLab;
@property (weak, nonatomic) IBOutlet UILabel *rateLab;

@property (weak, nonatomic) IBOutlet UILabel *payedCommissionLab;

@end



@implementation CommissionCountView



+(instancetype)creatView{
    
    CommissionCountView *view = [[[NSBundle mainBundle]loadNibNamed:@"CommissionCountView" owner:nil options:nil]lastObject];
    
    
    return view;
}



-(void)setData:(CommissionData*)data{

    [self.commissionMoneryCountLab setText:data.commissionMoneryCount];
    [self.salesCountLab setText:data.saleMoneryCount];
    [self.salesHoursCountLab setText:data.saleHourseCount];
    [self.rateLab setText:data.commissionRate];
    [self.payedCommissionLab setText:data.passCommissionMoneryCount];
}

@end
